<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./字符串.js"></script>
    <script>
        let str='iloveyou'
        let str2='lol'
        let str3='尚大出品大厂学院-个性化定制专题课程，自由选学'

        console.log(reverseString(str)); //对字符串进行翻转
        console.log(palindrome(str2));  //判断字符串是否为回文
        console.log(truncate(str3,11));  //对字符串进行截取
    </script>
</body>
</html>